fix[next-dace]: Fix SDFG lowering of neighbors-reduce on field with non-zero origin#2569
fix[next-dace]: Fix SDFG lowering of neighbors-reduce on field with non-zero origin#2569edopao wants to merge 8 commits intoGridTools:mainfrom
Conversation
There was a problem hiding this comment.
Can we add an integration test? test_unstructured_shift called with a field of non-zero domain start / origin should trigger this too right? Maybe we should also rename the PR since the main part is the fix not really the reintroduction of the warning.
Good point. I have added two test cases. One is a variant of |
| if unstructured_case.backend is None: | ||
| pytest.xfail("Embedded backend requires contiguous inverse image.") |
There was a problem hiding this comment.
@havogt Would that be OK to merge the tests with this xfail?
This PR re-enables a warning which was hit in ICON4Py by the dace backend, because we forced the backend to always compute fields everywhere, as a workaround for an issue in the dace backend, also when gt4py can infer the minimal domain at compile time.
The issue in the dace backed was caused by a bug in de-referencing a field computed on the minimal domain. Tested in icon4py PR C2SM/icon4py#1190